package ru.vsu.cs.kis.elections;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import ru.vsu.cs.kis.elections.client.ClientThread;
import ru.vsu.cs.kis.elections.server.ServerThread;

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ServerThread.runServer();

		ExecutorService service = Executors.newCachedThreadPool();
		Integer i=0;
		while (i<100) {
			i++;
			ClientThread thr = new ClientThread("vrn45", "pw33", "127.0.0.1",
					4444);
			service.submit(thr);
		}
	}

}
